package com.thornbird.vehiclerecycling.service;

import com.thornbird.vehiclerecycling.entity.User;
import com.thornbird.vehiclerecycling.exception.NotFoundException;
import com.thornbird.vehiclerecycling.exception.ValidationException;
import com.thornbird.vehiclerecycling.model.record.PageList;
import com.thornbird.vehiclerecycling.model.record.UserRecord;

public interface UserService {

    Boolean isActive(UserRecord userRecord);

    Boolean isSuperUser(UserRecord userRecord);

    PageList<UserRecord> findUsers(String keyword, Integer pageNumber, Integer pageSize);

    UserRecord saveUser(User user) throws NotFoundException, ValidationException;

}
